package com.byd.sealmanage.dao.mybatis;

import com.byd.sealmanage.config.CommonMapper;
import com.byd.sealmanage.modal.po.TbProcessNode;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface TbProcessNodeMapper extends CommonMapper<TbProcessNode> {

    /**
     * 批量插入节点
     * @param nodeList
     * @return
     */
    int insertNodeList(List<TbProcessNode> nodeList);

    /**
     * 获取流程详情页中的流程节点信息
     * @param trackId
     * @return
     */
    List<TbProcessNode> selectProcessNode(String trackId);

    /**
     * 删除当前节点
     * @param trackId
     * @return
     */
    int deleteNode(@Param("trackId") String trackId,@Param("nodeState") String nodeState);
}